﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DealerJudge.Entity;
using DealerJudge.Web.Models;

namespace DealerJudge.Web.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            //ViewData["Message"] = "Welcome to ASP.NET MVC!";
            HomeModel homeModel = new HomeModel();
            List<Category> categoryList = homeModel.GetDealerCategory();
            ViewData["categoryList"] = new SelectList(categoryList, "Id", "Name");
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
